﻿using UnityEngine;
using System.Collections;

public class Tiro : MonoBehaviour {

	public float vel;

	public GameObject minimigos;
	

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		transform.Translate(0,-vel*Time.deltaTime, 0);
	
	}

	void  OnTriggerEnter (Collider col)
	{
		//Debug.Log("TESTE 113");
		if(col.gameObject.tag == "Enemy")
		{
			Destroy(gameObject);
		}


	}
	}
	


			
			
		


